# 编译views为go模块
asset:
	go-assets-builder views -p assets -o assets/assets.go
# 开发运行
run:
	make asset && go run main.go
# 编译
build:
	make asset && GIN_MODE=release go build -o dist/net-printer
# 后台运行
start:
	cd dist && GIN_MODE=release ./net-printer &
# 停止后台程序
stop:
	killall net-printer
# 重新运行
restart:
	make stop && make start
# 编译并重新运行
up:
	make build && make restart
